package com.party.domain;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

/**
 * 
 * @author Caizhf
 * @date 2017年7月17日下午1:31:17
 * @version v.0.1
 * @email 1115054416@qq.com 
 *
 * <p>Description: 优惠券</p>
 *
 */
public class Coupon {
	
	private Integer cpid;
	private String cName;						//名称
	private Integer productType;				//产品分类（分类：0场地，1布置商品，2达人服务，3包车服务，4餐饮服务，5套餐,6所有)
	private Double amountNeed;					//可使用此优惠券所需金额
	private Double favourablePrice;				//优惠金额
	private String rule;						//使用规则
	private Integer cNumber;					//发布数量
	@DateTimeFormat(pattern="yyyy-MM-dd")
	private Date startTime;						//起始时间
	@DateTimeFormat(pattern="yyyy-MM-dd")
	private Date endTime;						//结束使用的时间
	private Img img;
	
	
	public Img getImg() {
		return img;
	}
	public void setImg(Img img) {
		this.img = img;
	}
	public Integer getCpid() {
		return cpid;
	}
	public void setCpid(Integer cpid) {
		this.cpid = cpid;
	}
	public String getcName() {
		return cName;
	}
	public void setcName(String cName) {
		this.cName = cName;
	}
	public Integer getProductType() {
		return productType;
	}
	public void setProductType(Integer productType) {
		this.productType = productType;
	}
	public Double getAmountNeed() {
		return amountNeed;
	}
	public void setAmountNeed(Double amountNeed) {
		this.amountNeed = amountNeed;
	}
	public Double getFavourablePrice() {
		return favourablePrice;
	}
	public void setFavourablePrice(Double favourablePrice) {
		this.favourablePrice = favourablePrice;
	}
	public String getRule() {
		return rule;
	}
	public void setRule(String rule) {
		this.rule = rule;
	}
	public Integer getcNumber() {
		return cNumber;
	}
	public void setcNumber(Integer cNumber) {
		this.cNumber = cNumber;
	}
	public Date getStartTime() {
		return startTime;
	}
	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}
	public Date getEndTime() {
		return endTime;
	}
	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

}
